import request from '@/utils/request'
import defaultSettings from '@/settings'


//大额预对账--主页查询
export const hvpsPreReconciliationQuery = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationQuery/search`,
}

//大额预对账--明细查询
export function detail(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationQuery/detail?id=${data.id}`,
        method: 'get',
    })
}

// 大额预对账--手工校对
export function manualCheck(data) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationQuery/manualCheck`,
      method: 'post',
      data,
  })
}

// 大额汇总对账--汇总对账申请
export function summaryReconApply(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/SummaryReconciliationQuery/summaryReconApply`,
        method: 'post',
        data,
    })
}

// 大额汇总对账--手工对账
export function ManualReconciliation(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationQuery/ManualReconciliation`,
        method: 'post',
        data,
    })
}

// 大额预对账--查看原交易详情
export function queryOriTxn(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationQuery/queryOritxn`,
      method: 'get',
      params,
  })
}
